package com.kajespero.dao.template.impl;

import com.kajespero.dao.commons.impl.AbstractReadWriteDAO;
import com.kajespero.dao.template.TemplateDAO;
import com.kajespero.model.TemplateBean;

public class TemplateDAOImpl extends AbstractReadWriteDAO<TemplateBean, Long> implements TemplateDAO{

	@Override
	public TemplateBean createNewBean() throws InstantiationException,IllegalAccessException {
		TemplateBean template = new TemplateBean();
		template.setId(nextId());
		template.setKey(createKey(template.getId()));
		return template;
	}

}
